//
//  RadioCell.m
//  Leisure
//
//  Created by 大展 on 16/6/30.
//  Copyright © 2016年 大展. All rights reserved.
//

#import "RadioCell.h"

@interface RadioCell ()

@property (weak, nonatomic) IBOutlet UIImageView *coverimg;
@property (weak, nonatomic) IBOutlet UILabel *name;

@property (weak, nonatomic) IBOutlet UILabel *title;

@property (weak, nonatomic) IBOutlet UILabel *content;
@property (weak, nonatomic) IBOutlet UILabel *visitCount;
@end

@implementation RadioCell


- (void)setCellWithModel:(id)model {

    RadioModel *radioModel = model;
    [self.coverimg sd_setImageWithURL:[NSURL URLWithString:radioModel.coverimg ]];
    self.title.text = radioModel.title;
    self.name.text = radioModel.uname;
    self.content.text = radioModel.desc;
    self.visitCount.text = [NSString stringWithFormat:@"%@",radioModel.count];
    

}


@end
